
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __BSP_SPI_H
#define __BSP_SPI_H

/* Includes ------------------------------------------------------------------*/
#include <stdint.h>
#include "gd32w51x.h"
#include "FreeRTOS.h"

void BSP_SPI_Init(uint8_t id, uint32_t freq);
void BSP_SPI_SetNSS(uint8_t id, uint8_t state);
uint8_t BSP_SPI_Exchange(uint8_t id, uint8_t TxByte);

#endif 


